package com.bangbang.service.impl;

import com.bangbang.mapper.TbAdvertisingBillingMapper;
import com.bangbang.pojo.TbAdvertisingBilling;
import com.bangbang.service.ITbAdvertisingBillingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 广告计费类型表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-08-14
 */
@Service
public class TbAdvertisingBillingServiceImpl extends ServiceImpl<TbAdvertisingBillingMapper, TbAdvertisingBilling> implements ITbAdvertisingBillingService {

    @Autowired
    private TbAdvertisingBillingMapper billingMapper;

    @Override
    public TbAdvertisingBilling selectById(Long billId) {
        return billingMapper.selectById(billId);
    }

    @Override
    public void insert(TbAdvertisingBilling billing) {
        billingMapper.insert(billing);
    }

    @Override
    public List<TbAdvertisingBilling> selestAdverTise() {
        return  billingMapper.selectList(null);
    }
}
